package com.china08.yxyapi.entity.mg.mistakes;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 学生错题试题记录, 每一个学生的每一道错题可以记录多个笔记.</br>
 * 每次新增一条 笔记记录.
 * 
 * @author Richard Wang
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.mistakes.stu.ques.note")
public class StuMistakesQuesNote extends MongoBaseEntityNoId {

    @Id
    private String id;

    /**
     * 学生id
     */
    @Indexed
    @Field(value = "student_id")
    private String studentId;

    /**
     * 学生名称
     */
    @Field(value = "student_nick")
    private String studentNick;

    /** 试题:ID */
    @Indexed
    @Field(value = "ques_id")
    private String quesId;

    /**
     * 笔记内容,
     */
    @Field(value = "note")
    public String note;

    /**
     * 笔记发布时间
     */
    @Field(value = "publish_date")
    private Date publishDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentNick() {
        return studentNick;
    }

    public void setStudentNick(String studentNick) {
        this.studentNick = studentNick;
    }

    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

}
